package ipe.wtf;



import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.util.Log;
//-------------------------------------------------------------------------

public class WTFMain extends Activity {
	
	String TAG="WTF";
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
//-------------------------------------------------------------------------
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.wtf_main_menu, menu);
        return true;
    }
//-------------------------------------------------------------------------
    
    public void Quit(){
    	finish();
    
    }
    
    public void Quit(View v){
    	finish();
    
    }
//-------------------------------------------------------------------------
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle all of the possible menu actions.
        switch (item.getItemId()) {
        case R.id.mnu_quit:
        	Log.d(TAG,"mnu_quit");
        	Quit();
            break;
        case R.id.mnu_settings:
        	Log.d(TAG,"mnu_settings");
            break;
        }
        return super.onOptionsItemSelected(item);
        
    }
}